package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @author RJ
 * @date 2022/9/13 16:35
 */
/*
    药剂器械管理
 */
@TableName("drug_info")
public class DrugBean {
    //药剂器械id
    @TableId(value = "drug_id", type = IdType.AUTO)
    private Integer drugId;
    //名称
    @TableField("drug_name")
    private String drugName;
    //防治类型
    @TableField("drug_control_type")
    private String drugControlType;
    //类别
    @TableField("drug_type")
    private String drugType;
    //主要用途
    @TableField("drug_purpose")
    private String drugPurpose;

    public DrugBean() {
    }

    public DrugBean(String drugName, String drugControlType, String drugType, String drugPurpose) {
        this.drugName = drugName;
        this.drugControlType = drugControlType;
        this.drugType = drugType;
        this.drugPurpose = drugPurpose;
    }

    public Integer getDrugId() {
        return drugId;
    }

    public void setDrugId(Integer drugId) {
        this.drugId = drugId;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public String getDrugControlType() {
        return drugControlType;
    }

    public void setDrugControlType(String drugControlType) {
        this.drugControlType = drugControlType;
    }

    public String getDrugType() {
        return drugType;
    }

    public void setDrugType(String drugType) {
        this.drugType = drugType;
    }

    public String getPurpose() {
        return drugPurpose;
    }

    public void setPurpose(String purpose) {
        this.drugPurpose = purpose;
    }

    @Override
    public String toString() {
        return "DrugBean{" +
                "drugId=" + drugId +
                ", drugName='" + drugName + '\'' +
                ", drugControlType='" + drugControlType + '\'' +
                ", drugType='" + drugType + '\'' +
                ", drugPurpose='" + drugPurpose + '\'' +
                '}';
    }
}
